package cn.com.wangluotongxin.merchants.controller.dubbo;

import cn.com.wangluotongxin.admin.DAdminQuickQueryService;
import cn.com.wangluotongxin.admin.model.AdminQuickQuery;
import cn.com.wangluotongxin.common.web.AjaxResult;
import com.alibaba.dubbo.config.annotation.Reference;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Api(tags = "网络通信-管理端-快捷查询 相关接口")
@RestController
@RequestMapping("/dubbo/admin/quick/query")
public class DubboAdminQuickQueryController {

    @Reference
    private DAdminQuickQueryService quickQueryService;

    @ApiOperation("可用查询分类信息")
    @GetMapping("/available/list")
    public AjaxResult<List<AdminQuickQuery>> availableList() {
        return AjaxResult.success(quickQueryService.availableList());
    }
}
